<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Lithne: E:/My Documents/Arduino/libraries/Lithne/Message.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Lithne
   &#160;<span id="projectnumber">v0.9</span>
   </div>
   <div id="projectbrief">Lithne Library</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_message_8h.html','');
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">E:/My Documents/Arduino/libraries/Lithne/Message.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00012"></a>00012 <span class="preprocessor">#ifndef Message_h</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">#define Message_h</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span>
<a name="l00015"></a>00015 <span class="preprocessor">#ifndef MAX_ARGS</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">        #define MAX_ARGS 20</span>
<a name="l00017"></a>00017 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span>
<a name="l00019"></a>00019 <span class="preprocessor">#include &quot;Node.h&quot;</span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &quot;XBee.h&quot;</span>
<a name="l00021"></a>00021 
<a name="l00022"></a><a class="code" href="class_message.html">00022</a> <span class="keyword">class </span><a class="code" href="class_message.html">Message</a>
<a name="l00023"></a>00023 {
<a name="l00024"></a>00024   <span class="keyword">public</span>:
<a name="l00025"></a>00025         <a class="code" href="class_message.html#af1991e0448f9277f0939d142e4aa2c94">Message</a>();
<a name="l00026"></a>00026         
<a name="l00027"></a>00027         ~<a class="code" href="class_message.html">Message</a>();
<a name="l00028"></a>00028         
<a name="l00029"></a>00029         <span class="keywordtype">void</span> <a class="code" href="class_message.html#a39795494fa0850ded8a9845670c71fe7">clearArguments</a>();
<a name="l00030"></a>00030 
<a name="l00031"></a>00031         <span class="keywordtype">void</span> <a class="code" href="class_message.html#a6cf7b995c71b56b5ad93edb3cba8f0c9">setRecipient64</a>( XBeeAddress64 _addr64 );
<a name="l00032"></a>00032         <span class="keywordtype">void</span> setRecipient16( uint16_t _addr16 );
<a name="l00033"></a>00033         <span class="keywordtype">void</span> <a class="code" href="class_message.html#a0b74beb7981b0c79c31c1643cab703bd">setFunction</a>(        uint16_t _func );
<a name="l00034"></a>00034         <span class="keywordtype">void</span> <a class="code" href="class_message.html#a4afe772bcd1ad2b31911a6797376eb3c">setSender64</a>(        XBeeAddress64 _addr64 );
<a name="l00035"></a>00035 
<a name="l00036"></a>00036         <span class="keywordtype">void</span> <a class="code" href="class_message.html#ab4222a4caeed6f5eacfa4940996e7918">setSender16</a>(        uint16_t _addr16 );
<a name="l00037"></a>00037 
<a name="l00038"></a>00038         <span class="keywordtype">void</span> <a class="code" href="class_message.html#a1b59fb8526ffa16c9aa47f5e8a953a8f">setSender</a>(          uint16_t _addr16, XBeeAddress64 _addr64 );
<a name="l00039"></a>00039         <span class="keywordtype">void</span> <a class="code" href="class_message.html#a17fb87eca91a2945b13cd0c9ea651aee">setScope</a>(           uint16_t _scope );
<a name="l00040"></a>00040         
<a name="l00041"></a>00041         <span class="keywordtype">bool</span> <a class="code" href="class_message.html#a98932f7d2eba2fa6e19f7dd89db3713d">addArgument</a>( uint16_t _arg );
<a name="l00042"></a>00042 
<a name="l00043"></a>00043 <span class="comment">//      boolean addArg( uint32_t* arg); Discuss with Elco how to implement this</span>
<a name="l00044"></a>00044 
<a name="l00045"></a>00045         
<a name="l00046"></a>00046         uint8_t  <a class="code" href="class_message.html#aadb53b8c2f789c39bc7d201ed4534e7c">getNumberOfArguments</a>();
<a name="l00047"></a>00047         
<a name="l00048"></a>00048         uint16_t <a class="code" href="class_message.html#a281a2cdfe63729b4d79f02bd9354efcb">getArgument</a>( uint8_t _position );
<a name="l00049"></a>00049         uint16_t <a class="code" href="class_message.html#ad0c185e247f59816bfe6eabe01805506">getFunction</a>( );
<a name="l00050"></a>00050         uint16_t <a class="code" href="class_message.html#a4adf83103b7030336d7dffe792457bb5">getSender16</a>();
<a name="l00051"></a>00051         uint16_t <a class="code" href="class_message.html#a702a4a84b2e64bb53e81e40b51db6592">getRecipient16</a>();
<a name="l00052"></a>00052         uint16_t <a class="code" href="class_message.html#af46fefad0e438edaedd735e1e6ce249c">getScope</a>();
<a name="l00053"></a>00053         
<a name="l00054"></a>00054         XBeeAddress64 <a class="code" href="class_message.html#a655dc1f9216a2fbcab23492bd9d9093b">getSender64</a>( );
<a name="l00055"></a>00055         XBeeAddress64 <a class="code" href="class_message.html#ab1d0a28ec1c469ea6af199201505f64d">getRecipient64</a>( );
<a name="l00056"></a>00056 
<a name="l00057"></a>00057   <span class="keyword">private</span>:
<a name="l00059"></a>00059         uint8_t                 numArgs;
<a name="l00061"></a>00061         uint16_t                <span class="keyword">function</span>;
<a name="l00062"></a>00062         uint16_t                args[MAX_ARGS];
<a name="l00064"></a>00064         uint16_t                sender16;
<a name="l00066"></a>00066         uint16_t                recipient16;
<a name="l00072"></a>00072         uint16_t                scope;                          
<a name="l00074"></a>00074         XBeeAddress64   sender64;                       
<a name="l00076"></a>00076         XBeeAddress64   recipient64;            
<a name="l00077"></a>00077 };
<a name="l00078"></a>00078 
<a name="l00079"></a>00079 <span class="preprocessor">#endif</span>
<a name="l00080"></a>00080 <span class="preprocessor"></span>
</pre></div></div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>Message.h</b>      </li>

    <li class="footer">Generated on Wed Apr 4 2012 17:22:48 for Lithne by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
   </ul>
 </div>


</body>
</html>
